<?php

/**
 * Change the following URL based on your server configuration
 * Make sure the URL ends with a slash so that we can use relative URLs in test cases
 */
define('TEST_BASE_URL','http://localhost/matriz-de-sincronizacao/index-test.php');

/**
 * The base class for functional test cases.
 * In this class, we set the base URL for the test application.
 * We also provide some common methods to be used by concrete test classes.
 */
class WebTestCase extends CWebTestCase {

    /**
     * Running functional tests with Selenium on terminal (linux):
     * 1) Run selenium server:          java -jar selenium-server-standalone-2.33.0.jar
     * 2) Enter tests folder:           cd matriz-de-sincronizacao/protected/tests/
     * 3) Phpunit for each test file:   phpunit functional/LoginTest.php
     */

    /**
	 * Sets up before each test method runs.
	 * This mainly sets the base URL for the test application.
	 */
	protected function setUp() {
		parent::setUp();
        $this->setBrowser('*firefox');
		$this->setBrowserUrl(TEST_BASE_URL);
        $this->prepareTestSession();
        $this->windowMaximize();
	}
}
